package com.sunshine.springboot.dto.properties;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 自定义属性配置
 *
 * @author WeiHong
 * @date 2018/8/14
 */
@Component
@ConfigurationProperties(prefix = "my")
@ToString
@Setter
@Getter
public class MyProperties {

    private int age;
    private String name;

}
